package proxy;

public class StaticProxy implements ISayHelloWorld {
  ISayHelloWorld iSayHelloWorld;

  public StaticProxy(ISayHelloWorld iSayHelloWorld) {
    this.iSayHelloWorld = iSayHelloWorld;
  }

  @Override
  public String say() {
    System.out.println("staticProxy");
    iSayHelloWorld.say();
    return "Man";
  }

  @Override
  public String doIt() {
    System.out.println("staticProxy");
    iSayHelloWorld.doIt();
    return "Woman";
  }

  @Override
  public String rest() {
    return null;
  }
}
